home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / DTS Sample Code / System 7.0 Samples / MacShell / ListControl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-04  |  1.7 KB  |  53 lines  |  [TEXT/MPS ]

  1. #ifndef __LISTCONTROL__
  2. #define __LISTCONTROL__
  3.  
  4. #ifndef __TYPES__
  5. #include <Types.h>
  6. #endif
  7.  
  8. #ifndef __LISTS__
  9. #include <Lists.h>
  10. #endif
  11.  
  12. #ifndef __WINDOWS__
  13. #include <Windows.h>
  14. #endif
  15.  
  16. typedef struct CLDataRec {
  17.     short    txFont;
  18.     Style    txFace;
  19.     short    txMode;
  20.     short    txSize;
  21.     short    mode;
  22. } CLDataRec;
  23. typedef CLDataRec *CLDataPtr, **CLDataHndl;
  24.  
  25. void            CLActivate(Boolean active, ListHandle listHndl);
  26. void            CLBorderDraw(ListHandle listHndl);
  27. Boolean            CLClick(EventRecord *event, short *dblClick);
  28. pascal long        CLCtl(short varCode, ControlHandle ctl, short msg, long parm);
  29. ControlHandle    CLCtlHit(void);
  30. Boolean            CLEvent(EventRecord *event, short *dblClick);
  31. ListHandle        CLFindActive(WindowPtr window);
  32. Boolean            CLFindCtl(WindowPtr window, EventRecord *event, ListHandle *listHndl, ControlHandle *ctlHit);
  33. ListHandle        CLFromScroll(ControlHandle scrollCtl, ControlHandle *retCtl);
  34. short            CLInsert(ListHandle listHndl, char *data, short dataLen, short row, short col);
  35. Boolean            CLKey(EventRecord *event);
  36. ListHandle        CLNew(short viewID, Rect *vRect, short numRows, short numCols, short cellHeight, short cellWidth, short theLProc, WindowPtr window, short mode);
  37. ControlHandle    CLNext(WindowPtr window, ListHandle *listHndl, ControlHandle ctl);
  38. void            CLPrint(RgnHandle clipRgn, ListHandle listHndl, short *row, short *col, short leftEdge, Rect *drawRct);
  39. short            CLRowOrColSearch(ListHandle listHndl, char *data, short dataLen, short row, short col);
  40. void            CLUpdate(RgnHandle clipRgn, ListHandle list);
  41. ControlHandle    CLViewFromList(ListHandle listHndl);
  42. void            CLWindActivate(WindowPtr window);
  43.  
  44. #define clHScroll        1
  45. #define clVScroll        2
  46. #define clActive        4
  47. #define clShowActive    8
  48. #define clKeyPos        16
  49. #define clDrawIt        0x8000
  50.  
  51. #endif __LISTCONTROL__
  52.  
  53.